<?php
// +----------------------------------------------------------------------
// | HkCms 推荐位模型
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2021 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: HkCms team <admin@hkcms.cn>
// +----------------------------------------------------------------------

declare (strict_types = 1);

namespace app\admin\model\cms;

use think\Model;

class Recommend extends Model
{

    public static function onAfterDelete($model)
    {
        Banner::where(['recommend_id'=>$model->getAttr('id')])->delete();
    }
}
